package agent.strategy.strategies;

import agent.strategy.Strategy;
import api.API;
import api.Market;
import utils.Display;

/**
 * User: Darren
 * Date: 18/05/13
 * Time: 11:23 AM
 */
public class SelectMarketAndView extends Strategy {
    private API api;
    private Market market;
    private Display display;

    public SelectMarketAndView(API api, Market market, Display display) {
        this.api = api;
        this.market = market;
        this.display = display;
    }

    @Override
    public void run() {
        if (api.selectMarket(market, display)) {
            display.displayMarketInfo(market);
            display.displayMarketRunners(market);
        }
    }
}
